import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { GzhMenuComponent } from './gzh-menu.component';
import { BindPhoneNumberModule } from '../bind-phone-number/bind-phone-number.module';


const routes: Routes = [
  {path: '', component: GzhMenuComponent,
   children: [
     {
       path: '', redirectTo: 'gzh-chat', pathMatch: 'full'
     },
     {
       path: 'gzh-chat', loadChildren: () => import('./gzh-chat/gzh-chat.module').then(m => m.GzhChatModule)
     },
     {
       path: 'gzh-info', loadChildren: () => import('./gzh-info/gzh-info.module').then(m => m.GzhInfoModule)
     }
   ]
  },
  {
    path: 'bindPhoneNumber', component: BindPhoneNumberModule
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class GzhMenuRoutingModule { }
